keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about VS-GW2120/GW1600/GW1202 and WGW1002G GSM Series VoIP Gateway

problem sending sms with carriage return

9 years 5 months ago #10019 by lindali
hello,
Please add my skype to your contact list, I'll help you with your problem.
Best regards,

skype: linda.li258
email: This email address is being protected from spambots. You need JavaScript enabled to view it.
9 years 5 months ago #10028 by amieru
Hi Lindali, I am also experiencng the same problem, can you also help us on our problem?

Thank you.
9 years 5 months ago #10042 by Louis
Have you trying to use the Escape character?

(char)0x1D

ASCII Control Codes:

academic.evergreen.edu/projects/biophysi...ogram/ascii_ctrl.htm
9 years 5 months ago - 9 years 5 months ago #10046 by maxfranco
i tried prepending an urlencoded escape char (%1B) to a CR char.
No luck... the sms doesn't start.
an escape char only can be sent, but obviously it didn't result in any output in the sms
9 years 5 months ago - 9 years 5 months ago #10047 by maxfranco
ok... if i put and urlencoded duble quotes into the sms, the gsm gateway correctly escapes it
Command: gsm send sync sms 2 3929xxxxxx "\"test\"" 10000

if i put a line feed it is not escaped:
Command: gsm send sync sms 3 3929xxxxxx "test

newline" 10000
9 years 5 months ago - 9 years 5 months ago #10048 by Louis
when you access it through socket in linux, it gives you the a message like:

escape character '^]'

i guess you should do the following:

String cmd = "Command: gsm send sync sms 3 3929xxxxxx \"test"+(char)0x1D+"
"+(char)0x1D+"
"newline\" 10000";

because the escape character is "^]" (Group separator)

you can also try this way:

char GS = (char)29;
Time to create page: 0.046 seconds
Powered by Kunena Forum